//
//	MCCreatePlanCompleteDataActionModel.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCCreatePlanCompleteDataActionModel : NSObject, NSCoding, Mappable{

	var actionPlanDetailActionList : [MCCreatePlanaddDataModel]?
	var breakTime : Int?
	var exerciseTime : Int?
	var isLast : Int?
	var sort : Int?


	class func newInstance(map: Map) -> Mappable?{
		return MCCreatePlanCompleteDataActionModel()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		actionPlanDetailActionList <- map["actionPlanDetailActionList"]
		breakTime <- map["breakTime"]
		exerciseTime <- map["exerciseTime"]
		isLast <- map["isLast"]
		sort <- map["sort"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         actionPlanDetailActionList = aDecoder.decodeObject(forKey: "actionPlanDetailActionList") as? [MCCreatePlanaddDataModel]
         breakTime = aDecoder.decodeObject(forKey: "breakTime") as? Int
         exerciseTime = aDecoder.decodeObject(forKey: "exerciseTime") as? Int
         isLast = aDecoder.decodeObject(forKey: "isLast") as? Int
         sort = aDecoder.decodeObject(forKey: "sort") as? Int

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if actionPlanDetailActionList != nil{
			aCoder.encode(actionPlanDetailActionList, forKey: "actionPlanDetailActionList")
		}
		if breakTime != nil{
			aCoder.encode(breakTime, forKey: "breakTime")
		}
		if exerciseTime != nil{
			aCoder.encode(exerciseTime, forKey: "exerciseTime")
		}
		if isLast != nil{
			aCoder.encode(isLast, forKey: "isLast")
		}
		if sort != nil{
			aCoder.encode(sort, forKey: "sort")
		}

	}

}
